import api from '@/api/team'



export let findByUserName = () => {
  return api.get(`/team/findByUserName/1`)
}



export let findByTeamName = teamName => {
  return api.get(`/team/findByTeamName/${teamName}`)
}


export let addTeam = data => {
  return api.post('/team/add/team', data)
}

export let removeTeam = (username, teamname) => {
  let data = {
    userName: username,
    teamName: teamname,
  }
  return api.post('/team/remove/userName', data)
}